const getters = {
  userRole: (state) => state.user.userInfo.user_type,
  isManager: (state) => state.user.userInfo.user_type === 'manager',
  isAdmin: (state) => state.user.userInfo.user_type === 'admin',
  isAM: (state) => {
    const role = state.user.userInfo.user_type;
    return role === 'manager' || role === 'admin';
  }
};
export default getters;
